-- GENERATED SPELL FOR [Aku'mai Servant] --


function spell0_4978(pUnit, Event) --@Frost Nova,Self--
pUnit:FullCastSpellOnTarget(865,pUnit)
pUnit:RegisterEvent('Sorts_4978', 8000, 1)
end

function spell1_4978(pUnit, Event) --@Frostbolt Volley,n/a--
pUnit:FullCastSpellOnTarget(8398,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4978', 10000, 1)
end

function Sorts_4978(pUnit, Event)
local choix_sorts_4978 = math.random(0, 1)
if choix_sorts_4978 == 0 then
pUnit:RegisterEvent('spell0_4978', 1, 1)
end
if choix_sorts_4978 == 1 then
pUnit:RegisterEvent('spell1_4978', 1, 1)
end
end

function mob4978_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4978', math.random(1500, 3000), 1)
end

function mob4978_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4978_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4978_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4978, 1, 'mob4978_Action')
RegisterUnitEvent(4978, 2, 'mob4978_Leave')
RegisterUnitEvent(4978, 3, 'mob4978_Kill')
RegisterUnitEvent(4978, 4, 'mob4978_Die')
